
export class ConanCard {
  id?: number;
  package?: string;
  cardDeckNo?: string;
  cardId?: string;
  limitCount?: number;
  cardName?: string;
  rare?: string;
  cardImg?: string;
  color?: ColorType;
  type?: CardType;
  lp?: number;
  category?: string[];
  cost?: number;
  ap?: number;
  feature?: string;
  copyright?: string;
  illustrator?: string;
  featureList?: ConanCardFeatureEntity[];
}

export class ConanCardSearchRequest {
  package?: string;
  rare?: string;
  color?: ColorType;
  apMin?: number;
  apMax?: number;
  costMin?: number;
  costMax?: number;
  lpMin?: number;
  lpMax?: number;
  type?: CardType;
  category?: string;
}


export class ConanCardFeatureEntity {
  id?: number;
  cardDeckNo?: string;
  content?: string;
  contentImg?: string;
  newLine?: boolean;
  sortOrder?: number;
}

export enum ColorType {
  Red = 'Red',
  Blue = 'Blue',
  Green = 'Green',
  Yellow = 'Yellow',
  White = 'White',
}

export const ColorTypeMap = {
  [ColorType.Red]: '红',
  [ColorType.Blue]: '蓝',
  [ColorType.Green]: '绿',
  [ColorType.Yellow]: '黄',
  [ColorType.White]: '白',
}

export const ColorTypList = [{
  label: ColorTypeMap[ColorType.Red],
  value: ColorType.Red
}, {
  label: ColorTypeMap[ColorType.Blue],
  value: ColorType.Blue
}, {
  label: ColorTypeMap[ColorType.Green],
  value: ColorType.Green
}, {
  label: ColorTypeMap[ColorType.Yellow],
  value: ColorType.Yellow
}, {
  label: ColorTypeMap[ColorType.White],
  value: ColorType.White
}]

export enum CardType {
  Partner = 'Partner',
  Case = 'Case',
  Character = 'Character',
  Event = 'Event',
}

export const CardTypeMap = {
  [CardType.Partner]: '搭档',
  [CardType.Case]: '案件',
  [CardType.Character]: '角色',
  [CardType.Event]: '事件',
}

export const CardTypeList = [{
  label: CardTypeMap[CardType.Partner],
  value: CardType.Partner
}, {
  label: CardTypeMap[CardType.Case],
  value: CardType.Case
}, {
  label: CardTypeMap[CardType.Character],
  value: CardType.Character
}, {
  label: CardTypeMap[CardType.Event],
  value: CardType.Event
}]


export const ConanRareList = [{
  label: 'C',
  value: 'C'
}, {
  label: 'CP',
  value: 'CP'
}, {
  label: 'R',
  value: 'R'
}, {
  label: 'RP',
  value: 'RP'
}, {
  label: 'SR',
  value: 'SR'
}, {
  label: 'SRP',
  value: 'SRP'
}, {
  label: 'D',
  value: 'D'
}, {
  label: 'PR',
  value: 'PR'
}]